﻿<!DOCTYPE html>

<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="utf-8" />
    <title>websocket client</title>
</head>
<body>
    <table width="50%" height="100%">
        <tr>
            <td height="100">
                <form onsubmit="return false;">
                    <table width="100%" height="100%" cellpadding="0" cellspacing="0">
                        <tr>
                            <td>
                                <textarea id="sendText" style="width:100%;height:80px;" />data</textarea><br />
                            </td>
                            <td width="100" align=center>
                                <input type="button" value="发送" onclick="SendText()" style="height:60px;width:60px;" />
                            </td>
                        </tr>
                    </table>
                </form>
            </td>
        </tr>
        <tr>
            <td>
                <textarea id="recvText" style="width:100%;height:500px"></textarea>
            </td>
        </tr>
    </table>
</body>
<script src="socket.js" ></script>
</html>